package cn.samir.sudoku.core;

import android.util.Log;

public class SudokuSubItem {
	
	private static final String TAG = "SudokuSubItem";
	int xPoint;//x���
	int yPoint;//y���
	int groupNum;
	int value;
	
	
	public SudokuSubItem(int x, int y) {
		super();
		this.xPoint = x;
		this.yPoint = y;
		groupNum = x/3+(y/3)*3;
		//Log.i(TAG, "x="+x+",y="+y+",group="+groupNum);
		
	}
	public int getxPoint() {
		return xPoint;
	}
	public SudokuSubItem() {
		super();
	}
	public void setxPoint(int xPoint) {
		this.xPoint = xPoint;
	}
	public int getyPoint() {
		return yPoint;
	}
	public void setyPoint(int yPoint) {
		this.yPoint = yPoint;
	}
	public int getGroupNum() {
		return groupNum;
	}
	public void setGroupNum(int groupNum) {
		this.groupNum = groupNum;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	@Override
	public String toString() {
		return "SudokuSubItem [xPoint=" + xPoint + ", yPoint=" + yPoint
				+ ", groupNum=" + groupNum + ", value=" + value + "]";
	}
	
	
	
}
